package com.hl.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 售后对象 after_sale
 * 
 * @author ruoyi
 * @date 2025-08-07
 */
public class AfterSale extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 售后单ID（主键） */
    private Integer afterSaleId;

    /** 关联订单ID */
    private String orderId;

    /** 创建人ID */
    private Integer creatorId;

    /** 创建人（对应页面“创建人”列，如 admin） */
    @Excel(name = "创建人", readConverterExp = "对=应页面“创建人”列，如,a=dmin")
    private String creator;

    /** 售后原因描述 */
    @Excel(name = "售后原因描述")
    private String reasonDesc;

    /** 售后类型：1-退货；2-退款；3-取消；4-投诉 */
    private String afterSaleType;

    /** 添加数据时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "添加数据时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date applyTime;

    public void setAfterSaleId(Integer afterSaleId) 
    {
        this.afterSaleId = afterSaleId;
    }

    public Integer getAfterSaleId() 
    {
        return afterSaleId;
    }

    public void setOrderId(String orderId) 
    {
        this.orderId = orderId;
    }

    public String getOrderId() 
    {
        return orderId;
    }

    public void setCreatorId(Integer creatorId) 
    {
        this.creatorId = creatorId;
    }

    public Integer getCreatorId() 
    {
        return creatorId;
    }

    public void setCreator(String creator) 
    {
        this.creator = creator;
    }

    public String getCreator() 
    {
        return creator;
    }

    public void setReasonDesc(String reasonDesc) 
    {
        this.reasonDesc = reasonDesc;
    }

    public String getReasonDesc() 
    {
        return reasonDesc;
    }

    public void setAfterSaleType(String afterSaleType) 
    {
        this.afterSaleType = afterSaleType;
    }

    public String getAfterSaleType() 
    {
        return afterSaleType;
    }

    public void setApplyTime(Date applyTime) 
    {
        this.applyTime = applyTime;
    }

    public Date getApplyTime() 
    {
        return applyTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("afterSaleId", getAfterSaleId())
            .append("orderId", getOrderId())
            .append("creatorId", getCreatorId())
            .append("creator", getCreator())
            .append("reasonDesc", getReasonDesc())
            .append("afterSaleType", getAfterSaleType())
            .append("applyTime", getApplyTime())
            .toString();
    }
}
